﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using testapi.Services;

namespace testapi.Configuration
{
    public static class ServiceExtension
    {
      public static IServiceCollection AddAppService(this IServiceCollection service)
        {
            if (service!=null)
            {
                service.AddTransient<ServiceContext>();
            }

            return service;
        }

    }
}
